﻿/*
 * Created by SharpDevelop.
 * User: Eddie
 * Date: 4/14/2012
 * Time: 10:44 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace PathFinder
{
	/* @class Node
	 * 
     * @brief
     * A custom data type. (NOTE: This should probably be changed to a struct some time in the future)
     */
	public class Node
	{
		public bool traverse;                 // this node is traverseable
		public bool path;                     // if this is on the shortest path
		public bool visited;                  // if this node has been traversed
		public double distance;               // shortest straight line distance from this node to the destination
		public bool visitedNeighbour;         // if one of this node's neighbours has been visited
		public int totalDistance;             // the actual travel distance from the start to this node
		public bool testPoint;                // this is used only for testing
		
		public Node ()
    	{
        	traverse = false;
        	path=false;
        	visited = false;
        	distance = 0;
        	testPoint = false;
        	visitedNeighbour =false;
        	totalDistance=0;
    	}
	}
}
